<h3>编辑团购</h3>

<% form_for(@tuangou_pro) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :title ,"团购标题"%>
    <%= f.text_field :title %>
  </p>
  
  <p>
    <%= f.label :state ,"团购状态"%>
    <%= f.select :state,[["进行中",0],["团购完成",1]] %>
  </p>
  <p>
    <%= f.label :tprice ,"团购价格"%>
    <%= f.text_field :tprice %>
  </p>
  <p>
    <%= f.label :click_count ,"点击数"%>
    <%= f.text_field :click_count,:size=>4 %>
  </p>
  <p>
    <%= f.label :description ,"描述"%>
    <%= f.text_area :description %>
  </p>
  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>
<%= link_to 'Back', tuangou_pros_path %>
<fieldset class="demo">
  <LEGEND>操作说明：</LEGEND>
  <p>

  </p>
</fieldset>
